public FixedValuesFilter ApplyFixedValuesFilter( bool includeBlanks, params string[] displayValues )
Exception | Description |
---|---|
System.ArgumentNullException | displayValues is null. |
System.ArgumentNullException | A value in the displayValues collection is null. |
System.ArgumentException | Multiple values from the displayValues collection are case-insensitively equal. |
System.InvalidOperationException | includeBlanks is False and displayValues has no items. At least one value must be allowed. |
System.InvalidOperationException | The WorksheetTable.IsFilterUIVisible value of the owning table is False. Filters cannot be applied when the header row or filter button is hidden. |
System.InvalidOperationException | If column was removed from the table. |
Note: If any text values are longer than 255 characters in length and the workbook is saved in one of the 2003 formats, the correct rows will be hidden in the saved file, but the filter may be missing from the column or reapplying the filter may hide some of the matching cells.
Target Platforms: Android 4.4+, iOS 8+
Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+